package com.issac.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.issac.dto.FruitDto;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 购销合同实体
 */

@NoArgsConstructor
@AllArgsConstructor
public class Contract {

  @TableId("contract_id")
  private String contractId;
  private String barcode;
  private int type;

  @TableField(fill = FieldFill.INSERT)
  private Date createTime;

  private Retailer retailer;

  private List<FruitDto> fruitList;

  public String getContractId() {
    return contractId;
  }

  public void setContractId(String contractId) {
    this.contractId = contractId;
  }

  public String getBarcode() {
    return barcode;
  }

  public void setBarcode(String barcode) {
    this.barcode = barcode;
  }

  public int getType() {
    return type;
  }

  public void setType(int type) {
    this.type = type;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Retailer getRetailer() {
    return retailer;
  }

  public void setRetailer(Retailer retailer) {
    this.retailer = retailer;
  }

  public List<FruitDto> getFruitList() {
    return fruitList;
  }

  public void setFruitList(List<FruitDto> fruitList) {
    this.fruitList = fruitList;
  }
}
